package com.buercc.common.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/common")
public class CommonAction {

    @GetMapping("/list")
    public Map getList() {
        Map map = new HashMap();

        map.put("common", "common");
        return map;
    }

    public static void main(String[] args) {

//        HashMap map = HashMap::new;

        List<String> strings = Arrays.asList("a", "b", "c");
        strings.forEach(System.out::println);
    }
}
